package com.cnplan.service.impl;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class FlightTrainTask {

    @Scheduled(cron = "0 0/3 * * * ?")
    public static void deletePath(){
//        System.out.println("定时删除图片");
//        String imgPath= KUtil.class.getClassLoader().getResource("/").getPath().replace("classes", "static")+"/img/test";
//        KUtil.deleteDir(new File(imgPath+"/tif"));
    }
}
